package com.jingzhe.oj.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jingzhe.oj.model.entity.ReplyThumb;
import com.jingzhe.oj.model.entity.User;

/**
 *
 */
public interface ReplyThumbService extends IService<ReplyThumb> {

    /**
     * 点赞
     *
     * @param replyId
     * @param loginUser
     * @return
     */
    int doReplyThumb(long replyId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     *
     * @param userId
     * @param replyId
     * @return
     */
    int doReplyThumbInner(long userId, long replyId);

    long getReply_thumbStatus(long replyId, long userId);

}
